package controleur;
import presentation.*;
import solitaire.application.*;


public class CSabot extends Sabot implements ICSabot{

	IPSabot presentation;

	public CSabot(String arg0, Usine usine) {
		super(arg0, usine);
		setPresentation(new PSabot(this));
	}

	public IPSabot getPresentation()
	{
		return presentation;
	}

	public void setPresentation(IPSabot s)
	{
		presentation = s;
	}

	public Tas getCachees(){
		return this.cachees;
	}

	public TasDeCartes getVisibles(){
		return (TasDeCartes) this.visibles;
	}

	public void troisCartes()
	{
		getPresentation().initialiser();
	}

	public void retourner()
	{
		try {
			super.retourner();
		} catch (Exception e) {
			e.printStackTrace();
		}
		PSabot p = (PSabot)getPresentation();
		p.initialiser();
	}

	public void actualiser() {
		getPresentation().initialiser();
	}
}